import setting from '../../settings'

const { title, ownerShip, isCollapse } = setting

let versionFileContent = require("../../../version.json")

const state = {
  title: title,//标题
  ownerShip: ownerShip,//所属文字
  versionNo: versionFileContent.versionNo,//版本号
  isCollapse: isCollapse,//左侧菜单栏是否折叠
}

const mutations = {
  SET_Collapse: (state, val) => {
    state.isCollapse = val
  }
}

const actions = {
  setCollapse({ commit }, val) {
    commit('SET_Collapse', val)
  },
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}

